import { type App } from "vue"
import { debounce } from "./debounce"
import { throttle } from "./throttle"
import { elTableInfiniteScroll } from "./el-table-infinite-scroll"
import { permission } from "./permission"

/** 挂载自定义指令 */
export function loadDirectives(app: App) {
  app.directive("debounce", debounce)
  app.directive("throttle", throttle)
  app.directive("el-table-infinite-scroll", elTableInfiniteScroll)
  app.directive("permission", permission)
}
